package edu.pku.sei.transformation.qvt.adapter.mediniqvt;

import edu.pku.sei.transformation.editor.model.ModelType;
import edu.pku.sei.transformation.editor.model.variable.ObjectVariable;
import edu.pku.sei.transformation.qvt.adapter.standardqvt.ObjectTemplateAdapter;

public class MediniQVTObjectTemplateAdapter extends ObjectTemplateAdapter {

	public MediniQVTObjectTemplateAdapter(ObjectVariable v) {
		super(v);
	}
	
	@Override
	public String getType() {
		if (element.getDomain().getTypedModel().getType() instanceof ModelType) {
			ModelType modelType =  (ModelType) element.getDomain().getTypedModel().getType();
			return modelType.getMetaModel().getName()+"::"+element.getType().toString();
		}
		
		return element.getType().toString();
	}

}